package com.mspbots.attendance.model;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * @author Dinnes Zhang
 * @date
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tenant_user_work_schedule", autoResultMap = true)
public class TenantUserWorkSchedule {
    private Long id;
    private Long userId;
    private Long tenantId;
    private String dayOfWeek;
    @TableField(value = "begin_time", updateStrategy = FieldStrategy.IGNORED)
    private LocalTime beginTime;
    @TableField(value = "end_time", updateStrategy = FieldStrategy.IGNORED)
    private LocalTime endTime;
    private Boolean dayOff;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer sort;
}
